home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 138 / pascal / stats.doc < prev    next >
Encoding:
Text File  |  1987-05-13  |  2.2 KB  |  44 lines

  1.         THE LAST PROGRAM I WILL EVER NEED TO WRITE
  2.     IN ORDER TO CALCULATE MEAN AND STANDARD DEVIATION
  3.  
  4.  
  5.         When I set about learning to use GEM from OSS Personal Pascal,
  6. I wanted to focus on that and not on the algorithm.  I recalled the
  7. times that I whipped out a simple program to calculate the mean and standard
  8. deviation of a set of numbers--usually 20 lines of BASIC.  "Why not",
  9. I thought, "write the ultimate mean program and learn to use GEM at
  10. the same time?"  STATS is the result.  You may notice that it is
  11. somewhat longer than 20 lines.  The complexity of GEM is partly to
  12. blame, but the program also got fatter as I added options and nice
  13. features to the interface.  The program has (in addition to the
  14. GEM interface) help screens, options to enter data from the keyboard
  15. or read it from disk, error checking of data entry, editing and
  16. sorting options, display of data, results or graph on screen or as
  17. printed copy, and more.
  18.  
  19.         If you just want to use the program, then all you need to
  20. worry about is having STATS.PRG and TITLE.I2 on the same disk, and
  21. you should be in MEDIUM RESOLUTION on a color monitor.  Double click
  22. on STATS.PRG, then click on HELP when the menu appears.  You can then
  23. click on the various options under HELP to read more about using the
  24. program.
  25.  
  26.         If you are a Pascal programmer, you will want to look at the
  27. source to see what you can modify or steal.  Note that I have included
  28. my INCLUDE library, which contains several procedures necessary to
  29. compile STATS (and a few other goodies, as well).  If you want to use
  30. the program in high resolution, just delete the call to TITLEPAGE and
  31. recompile.  As the program preface says, the program is poorly commented.
  32. I apologise; this is not the way I usually write programs.  Still, there
  33. are several interesting procedures which I was able to steal, and a
  34. few which I wrote, that may be of general interest.  Take a look at
  35. the program in action.  If you see something of interest that you can't
  36. puzzle out from the source, write me a letter or leave a message on
  37. Compuserve.
  38.  
  39.         Gary Curtis Newport
  40.         27808 Manon Ave. #18
  41.         Hayward, CA  94544
  42.  
  43.         Compuserve # 73637,167
  44.